//this is a module that can generate MAJ
//Last modified by yangjao at 2021/5/11

module MAJ_generator(
    input wire[31:0] data_in1,
    input wire[31:0] data_in2,
    input wire[31:0] data_in3,
    output wire[31:0] data_out
);

assign data_out = (data_in1 & data_in2) ^ (data_in1 & data_in3) ^ (data_in2 & data_in3);

endmodule